getCashFlowAmount

fun getCashFlowAmount(splitTxn: SplitTxn, txnType: InvestTxnType?, investCurr: CurrencyType): Long

Determine the amount of a transaction that is appropriate for a cash flow series for an ROI / IRR computation. Deposits = initial balance, buys, misc exp = positive numbers. These are inflows into the security and outflows of cash. Withdrawals = ending balance, sells, dividends, misc inc = negative values. These are outflows from the security and inflows of cash.

Return

The cash amount of the transaction to use for ROI / IRR computations, etc.

Parameters

splitTxn

The transaction to use.

txnType

The type of investment transaction.

investCurr

The currency of the investment account cash portion (dollars).